package com.ldj.shop.controller;

import com.alibaba.dubbo.config.annotation.Reference;
import com.ldj.shop.service.IUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * User: ldj
 * Date: 2024/3/28
 * Time: 23:57
 * Description: No Description
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Reference
    private IUserService userService;

    @GetMapping("/say")
    public String say(String name) {
        return userService.sayHello(name);
    }
}
